@section('title')
    我的帖子 @parent
@show

@section('subcontent')
<!-- 律師发布的帖子 -->
<div id="mainUserInfo">
<div class="mod-main mod-comm lefta-box">
    <div class="mt">
		<h3 class="curr">我的帖子</h3>
    </div>
    <div class="mc">
    	<table class="tb-void tb-top" width="100%" border="0" cellspacing="0" cellpadding="0">
		    <tbody>
		        <tr>
		            <th width="140">
		                文章
		            </th>
		            <th width="100">
		                类型
		            </th>
		            <th width="80">
		                评论
		            </th>
		            <th width="80">
		                浏览量
		            </th>
		            <th width="60">
		                收藏
		            </th>
		            <th width="100">
		                发布时间
		            </th>
		            <th width="100">
		                审核状态     
		            </th>
		            <th width="110">
		                操作
		            </th>

		        </tr>
		        @foreach($data as $rows)
		        	@if($rows['status']!=2)
		        <tr>
		            <td>
		            <a href="{{ route('center.lawyer.blog.view',$rows['id']) }}">{{$rows['title']}}</a>
		            </td>
		            <td>
		            {{$rows['classname']}}
		            </td>
		            <td>
		            {{$rows['comments']}}
		            </td>
		            <td>
		            {{$rows['hits']}}
		            </td>
		            <td>
		            {{$rows['collects_count']}}
		            </td>
		            <td>
		            	<span class="ftx-03">{{$rows['created_at']}}</span>
		            </td>
		            <td>
		           <?php 
		           	switch($rows['status']){
		           		case 1:
		           			echo "<font color=green>通过</font>";
		           			break;
		           		case 0:
		           			echo "<font color=red>待审核</font>";
		           			break;		           			
		           		case -1:
		           			echo "<font color=grey>未通过</font>";
		           			break;		           			
		           			
		           	}
		           ?>
		            
		            </td>
		            <td>
		            	<a class="btn-bg-size" style="color:#FFF" href="{{ route('center.lawyer.blog.edit',$rows['id']) }}"> 编辑 </a>
		            	<p>&nbsp;</p>
		            	<a class="btn-bg-size" style="color:#FFF" href="{{ route('center.lawyer.blog.remove',$rows['id']) }}"> 删除 </a>
					</td>
		        </tr>
		        	@endif
		        @endforeach
		    </tbody>
		</table>
    </div>
</div>
</div>
<script type="text/javascript">
var url ="{{ Config::get('app.url') }}";
$.get(url+'/center/lawyer/blog/list?captcha'+Math.random(), function(data){
      }, "json").error(function(data) {
      }).success(function(data) {
      }) 
</script> 
@show